<%@include file="/commons/decelerations.jsp" %>
<c:set var="submitButtonName"><c:choose>
	<c:when test='${action eq "CreateRole"}'>Create Role</c:when>
	<c:otherwise>Maintain Role</c:otherwise>
</c:choose></c:set>

<form action="${action}" method="post" id="form">
   <table>
     <c:choose>
       <c:when test='${action eq "CreateRole"}'>
       	<tr><td>Role Id</td><td><input type="text" id = "roleId" name="roleId" value="${role.roleId}"/></td></tr>
       </c:when>
       <c:otherwise>
  Role<tr><td>Role Id</td><td><input type="text" id = "roleId" name="roleId" value="${role.roleId}" readonly="readonly"/></td></tr>
       </c:otherwise>
     </c:choose>
       <tr><td>RoleName</td><td><input type="text" id = "roleName" name="roleName" value="${role.roleName}"/></td></tr>
       <tr>
       	<td><input type="submit" value="${submitButtonName}"/></td>
       	<td><button type="reset">Reset</button></td>
       </tr>
   </table>
</form>